layui.use(['form'], function (form) {
    form.render();

    //回显数据
    $.ajax({
        url: "../user/" + parseInt(Base64.decode(getToken())),
        success: function (data) {
            const user = data.obj;
            console.log("user", user);
            //给表单赋值
            form.val("personal_show", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值
                "username": user.username
                , "password": user.password
                , "nickname": user.nickname
                , "mail": user.mail
                , "mailpwd": user.mailpwd
                , "age": user.age
                , "sex": user.sex
                , "phone": user.phone
                , "address": user.address
            });
        }
    });

});